package com.tarry.decorate.optimize;

/**
 * 香肠装饰器
 */
public class SausageDecorate extends BatterCakeDecorate{

    public SausageDecorate(BatterCake batterCake) {
        super(batterCake);
    }

    @Override
    protected void doSomething() {

    }

    @Override
    protected String getMsg() {
        return super.getMsg() + "+1根香肠";
    }

    @Override
    public int getPrice() {
        // 多两块钱
        return super.getPrice() + 2;
    }
}
